import type { ResType } from '@/types'
import request from '@/utils/request'

export interface LoginType {
  name: string
  token: string
}
export function api_login(data: any) {
  return request<ResType<LoginType>>({
    url: '/login',
    method: 'post',
    data: data,
  })
}
